﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lincolnwood.Foundation.Scheduling
{
    internal class EventInstance : IEventInstance
    {
        private string _name;
        private string _description;
        private DateTime _startTime;
        private DateTime _endTime;
        private RecurrableEventDefinition _parentEventDefinition;

        public EventInstance(RecurrableEventDefinition parentEventDefinition, string name, string description, DateTime startTime, DateTime endTime)
        {
            this._parentEventDefinition = parentEventDefinition;
            this._name = name;
            this._description = description;
            this._startTime = startTime;
            this._endTime = endTime;
        }

        public RecurrableEventDefinition ParentEventDefinition
        {
            get
            {
                return _parentEventDefinition;
            }
        }

        public string Name
        {
            get
            {
                return _name;
            }
           
        }

        public string Description
        {
            get
            {
                return _description;
            }
          
        }

        public DateTime StartTime
        {
            get
            {
                return _startTime;
            }
           
        }

        public DateTime EndTime
        {
            get
            {
                return _endTime;
            }
          
        }


    }
}
